package cn.fsd.mapper;

import cn.fsd.domain.Courier;
import cn.fsd.query.substation.CourierQuery;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourierMapper {
    int deleteByPrimaryKey(String courier_id);

    int insert(Courier record);

    Courier selectByPrimaryKey(String courier_id);

    List<Courier> selectAll();

    int updateByPrimaryKey(Courier record);

    List<Courier> getAvailableCourierByStationId(CourierQuery query);

  List<Courier> getCourierByName(@Param("station_id") String stationId,@Param("courier_name") String courierName);
}